package com.zito.health.controller;

import com.zito.health.common.annotations.ResponseResult;
import com.zito.health.common.result.PlatformResult;
import com.zito.health.common.result.VerifyResult;
import com.zito.health.entity.ItemFeasibilityExpenses;
import com.zito.health.entity.ItemFeasibilityExpensesSubject;
import com.zito.health.service.ItemFeasibilityExpensesService;
import com.zito.health.service.ItemFeasibilityExpensesSubjectService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 项目可行性报告表-经费支出预算-科目
 */
@Slf4j
@RestController
@RequestMapping("/item/feasibilityExpensesSubject")
public class ItemFeasibilityExpensesSubjectController {

    @Autowired
    private ItemFeasibilityExpensesSubjectService itemFeasibilityExpensesSubjectService;

/*    @PostMapping("/save")
    public VerifyResult save(ItemFeasibilityExpensesSubject item){
        VerifyResult verifyResult = new VerifyResult();
        itemFeasibilityExpensesSubjectService.save(item);
        return verifyResult;
    }

    @PostMapping("/update")
    public VerifyResult update(ItemFeasibilityExpensesSubject item){
        VerifyResult verifyResult = new VerifyResult();
        itemFeasibilityExpensesSubjectService.update(item);
        return verifyResult;
    }*/

    /*@PostMapping("/query")
    public PlatformResult query(Integer id){
        return PlatformResult.success(itemFeasibilityExpensesSubjectService.queryById(id));
    }*/

    @PostMapping("/list")
    public PlatformResult list(){
        return PlatformResult.success(itemFeasibilityExpensesSubjectService.query());
    }

}
